﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>#if(${isdefault}==0) ${pagetitle} - #end ${sitename}</title>
<meta name="keywords" content="${metakeywords}" />
<meta name="description" content="${metadescription}" />
<link rel="stylesheet" type="text/css" media="all" href="${themeurl}css/style.css" />
<link rel="stylesheet" type="text/css" media="all" href="${siteurl}Assets/Styles/prettify.css" />
<script type="text/javascript" src="${siteurl}Assets/Scripts/prettify.js"></script>

<script type="text/javascript" src="${siteurl}Assets/Scripts/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="${siteurl}Assets/Scripts/cookies.js"></script>
${head}
</head>
<body onload="prettyPrint()">
<div id="wrap">
	<!--header -->
	<div id="header">			
				
		<h1 id="logo-text"><a href="index.html" title="">Bang<span>Q</span></a></h1>		
		<h2 id="slogan">有人的地方就有江湖,有江湖的地方就有刺客...</h2>		
			
		<div id="header-links">
			<p>
            <span id="nologin"><a href="/users/login.aspx">登录</a> | 
				<a href="/users/register.aspx">注册</a>
            </span>
            <span id="login">
                <span id="login-span"></span>
                <span><a href="/users/login.aspx?action=quit">注销</a></span>
            </span>
			</p>		
		</div>				
		<script type="text/javascript">
		    var ucookies = getCookies("User", "name");
		    if (ucookies != "" && ucookies != null) {
		        this.document.getElementById("login").style.display = "";
		        this.document.getElementById("nologin").style.display = "none";
		        this.document.getElementById("login-span").innerHTML ="欢迎您   " + "<a>"+ucookies+"</a>";
		    }
		    else {
		        this.document.getElementById("login").style.display = "none";
		        this.document.getElementById("nologin").style.display = "";

		    }

        </script>
	<!--header ends-->					
	</div>
		
	<!-- navigation starts-->	
	<div  id="nav">
		
		<div id="light-brown-line"></div>	
		
		<ul>

        #foreach($item in $navlinks)
            <li><a href="${item.href}" title="${item.description}" target="${item.target}">${item.name}</a></li>
        #end
			<!--<li id="current"><a href="index.html">Home</a></li>
			<li><a href="index.html">Archives</a></li>
			<li><a href="index.html">Downloads</a></li>
			<li><a href="index.html">Services</a></li>
			<li><a href="index.html">Support</a></li>
			<li><a href="index.html">About</a></li>		-->
		</ul>
		
	<!-- navigation ends-->	
	</div>	